package com.question.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * 问题实体类
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("questions")
public class Question implements Serializable {
    @TableId(value = "question_id",type = IdType.AUTO)
    private Integer questionId;
    private String questionType;
    private String content;
    private String answer; // 填空题的答案 // 弃用 // ycl要用
    private Integer maxLength; // 弃用
    private Integer baseScore = 10;
    private Double weight = 1.0;
    private LocalDateTime createdAt;
    private Integer createdBy;
    private Integer majorId; // 弃用
    private Integer categoryId;

    // 加了字段我很多地方要报错。。。。
    // 怎么又加上字段了？
//    private List<QuestionBlank> blanks;      // 填空题的空位列表
//    private List<QuestionChoice> choices;    // 选择题的选项列表
}
